Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: resolve error when deleting images in default editor #6551

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

LIlGG
Copy link
Member

@LIlGG LIlGG commented Aug 29, 2024

What type of PR is this?

/kind bug
/area editor
/area ui
/milestone 2.19.x

What this PR does / why we need it:

在上传的文件中执行 resetUpload 方法之前,提前验证是否可以进行更新。

How to test it?

测试删除图片或变更图片位置时,默认编辑器是否会进行报错。

Does this PR introduce a user-facing change?

解决默认编辑器删除图片后报错的问题

@f2c-ci-robot f2c-ci-robot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. labels Aug 29, 2024
@f2c-ci-robot f2c-ci-robot bot added this to the 2.19.x milestone Aug 29, 2024
@f2c-ci-robot f2c-ci-robot bot added area/editor Issues or PRs related to the Editor area/ui Issues or PRs related to the Halo UI labels Aug 29, 2024
@f2c-ci-robot f2c-ci-robot bot requested review from ruibaby and wzrove August 29, 2024 10:16
Copy link

pkg-pr-new bot commented Aug 29, 2024

commit: e4af314

@halo-dev/api-client

pnpm add https://pkg.pr.new/@halo-dev/api-client@6551

@halo-dev/components

pnpm add https://pkg.pr.new/@halo-dev/components@6551

@halo-dev/richtext-editor

pnpm add https://pkg.pr.new/@halo-dev/richtext-editor@6551

@halo-dev/console-shared

pnpm add https://pkg.pr.new/@halo-dev/console-shared@6551

@halo-dev/ui-plugin-bundler-kit

pnpm add https://pkg.pr.new/@halo-dev/ui-plugin-bundler-kit@6551

Open in Stackblitz

Copy link

sonarcloud bot commented Aug 29, 2024

Copy link

codecov bot commented Aug 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.93%. Comparing base (6cd8dc8) to head (e4af314).
Report is 41 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6551      +/-   ##
============================================
- Coverage     58.18%   57.93%   -0.25%     
- Complexity     3774     3878     +104     
============================================
  Files           651      670      +19     
  Lines         22125    22866     +741     
  Branches       1538     1550      +12     
============================================
+ Hits          12873    13248     +375     
- Misses         8641     9010     +369     
+ Partials        611      608       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@JohnNiang JohnNiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@f2c-ci-robot f2c-ci-robot bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 30, 2024
Copy link
Member

@ruibaby ruibaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@f2c-ci-robot f2c-ci-robot bot added the lgtm Indicates that a PR is ready to be merged. label Aug 30, 2024
Copy link

f2c-ci-robot bot commented Aug 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JohnNiang, ruibaby

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@f2c-ci-robot f2c-ci-robot bot merged commit 856d615 into halo-dev:main Aug 30, 2024
10 checks passed
@ruibaby ruibaby modified the milestones: 2.19.x, 2.19.0 Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/editor Issues or PRs related to the Editor area/ui Issues or PRs related to the Halo UI kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants